{include file=member.header.html}
<div id="page-buyer-order" class="mb10">
	<div class="buyer-order-body page-body">
		<!--{foreach from=$orders item=order}-->
                <div class="order-form mb10">
                    <h2 class="clearfix">
						 <p class="name"><a href="{url app=store&id=$order.seller_id}" >{$order.seller_name|escape}</a></p>
                        <p class="num ml10">{$lang.order_sn}: {$order.order_sn}{if $order.extension eq 'groupbuy'}<span class="color8">[{$lang.groupbuy}]</span>{/if}</p>
                    </h2>

                    <!--{foreach from=$order.order_goods item=goods name=fe_goods}-->
                    <div {if !$smarty.foreach.fe_goods.last}style="border-bottom-style:dashed"{/if} class="con webkit-box clearfix">
                        <div class="pic"><a href="{url app=goods&id=$goods.goods_id}" ><img src="{$goods.goods_image}" width="50" height="50"  /></a></div>
                        <div class="txt">
							<a href="{url app=buyer_order&act=view&order_id=$order.order_id}">
								<p>{$goods.goods_name|escape}</p>
								{if $goods.specification}<span class="attr mt5">{$goods.specification|escape}</span><br />{/if}
								 <span class="order-amount mt5">实付:{$order.order_amount|price}</span><br />
								<span class="mt5">共 {$goods.quantity} 件</span><br />
							</a>
						</div>
                    </div>
                    <!--{/foreach}-->
                      <p class="status"><em>{$order.status|modifier:order_status}<!--{if $order.evaluation_status}-->,&nbsp;{$lang.already_evaluate}<!--{/if}--></em></p>
					<div class="operate-btn pt10">
                    
								<a class="btn1 mr5" href="{url app=buyer_order&act=evaluate&order_id=$order.order_id}"  id="order{$order.order_id}_evaluate" {if $order.status neq ORDER_FINISHED or $order.evaluation_status neq 0}style="display:none"{/if}>{$lang.evaluate}</a>
								<a href="{url app=cashier&order_id=$order.order_id}"  id="order{$order.order_id}_action_pay" {if $order.status neq ORDER_PENDING} style="display:none"{/if} class="btn1 mr5">{$lang.pay}</a>
								<a class="btn1 mr5" href="{url app=buyer_order&amp;act=confirm_order&order_id=$order.order_id}" {if $order.status neq ORDER_SHIPPED or $order.payment_code eq 'cod'} style="display:none"{/if}>{$lang.confirm_order}</a>
								<a class="btn1 mr5" href="{url app=buyer_order&amp;act=cancel_order&order_id=$order.order_id}" {if $order.status neq ORDER_PENDING and $order.status neq ORDER_SUBMITTED} style="display:none"{/if}>{$lang.cancel_order}</a>
                                <a class="btn1 mr5" href="{url app=buyer_order&act=view&order_id=$order.order_id}" >{$lang.view_order}</a>
                                
                                 <!--{if $enable_express}-->
                        		<a class="btn1" href="{url app=order_express&amp;order_id=$order.order_id}" {if $order.status neq ORDER_SHIPPED && $order.status neq ORDER_FINISHED} style="display:none"{/if}>{$lang.view_delivery_track}</a>
                        	<!--{/if}-->
							</div>
                </div>
                <!--{foreachelse}-->
                <div class="no-record">
                    <span>{$lang.no_records}</span>
                </div>
                <!--{/foreach}--> 
	</div>
    <!--{if $orders}-->
    {include file=page.bottom.html}
    <!--{/if}-->
</div>
{include file=footer.html}
